<!DOCTYPE html> 
<html lang="en-US">
<head>
  <title>Online Result System</title>  
  <meta charset="utf-8">
   <link href="<?php echo base_url(); ?>assets/css/admin/global.css" rel="stylesheet" type="text/css">
   <link href="<?php echo base_url(); ?>assets/css/admin/menu.css" rel="stylesheet" type="text/css">
     <link href="<?php echo base_url(); ?>assets/css/admin/techb_design.css" rel="stylesheet" type="text/css">
	<script src="<?php echo base_url(); ?>assets/js/bootstrap.min.js"></script>
	<script src="<?php echo base_url(); ?>assets/js/admin.min.js"></script>
	<script src="<?php echo base_url(); ?>assets/js/jquery-2.0.3.min.js"></script>
	<script src="<?php echo base_url(); ?>assets/js/techb_methods.js"></script>
	<script src="<?php echo base_url(); ?>assets/js/techb_event_method.js"></script>
	

<script>
sfHover = function() {
var sfEls = document.getElementById("navigation").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
</script>
    
</head>
<body>

	<div class="navbar navbar-fixed-top">
	<div style="width:100%;height:40px;background-color:#C6CACC;padding-top:-20px"></div>
	  <div class="navbar-inner">
	   
	    <div class="container">
	    
	      <a class="brand">Holy Cross College Online Result System</a>
	      <!-- 
	      <ul class="nav">
	      
		      <li class="dropdown">
		          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Student <b class="caret"></b></a>
		          <ul class="dropdown-menu">
		            <li>
		              <a href="<?php echo base_url(); ?>admin/student">Student List</a>
		            </li>
		             <li>
		              <a href="<?php echo base_url(); ?>admin/studentMarks">Inser/ Update Marks</a>
		            </li>
		          </ul>
		        </li>
	        
	        <li <?php if($this->uri->segment(2) == 'products'){echo 'class="active"';}?>>
	          <a href="<?php echo base_url(); ?>admin/products">Products</a>
	        </li>
	        <li <?php if($this->uri->segment(2) == 'manufacturers'){echo 'class="active"';}?>>
	          <a href="<?php echo base_url(); ?>admin/manufacturers">Manufacturers</a>
	        </li>
	        <li class="dropdown">
	          <a href="#" class="dropdown-toggle" data-toggle="dropdown">System <b class="caret"></b></a>
	          <ul class="dropdown-menu">
	            <li>
	              <a href="<?php echo base_url(); ?>admin/logout">Logout</a>
	            </li>
	          </ul>
	        </li>
	      </ul> 
	      
	      -->
	      <!--
		<ul id="navigation">
		<li><a href="#"><span>Student</span></a>
		<ul>
		<li><a href="<?php echo base_url(); ?>admin/student">Student List</a></li>
		<li> <a href="<?php echo base_url(); ?>admin/student/update_std_marks_view">Inser/ Update Marks</a></li>
		<li><a href="#">Others</a></li>
		</ul>
		</li>
		<li><a href="<?php echo base_url(); ?>admin/products"><span>Products</span></a></li>
		<li><a href="<?php echo base_url(); ?>admin/manufacturers"><span>Manufacturers</span></a></li>
	      
		<li><a href="#"><span>System</span></a>
		  <ul>
			<li> <a href="<?php echo base_url(); ?>admin/logout">Logout</a></li>
		  </ul>
		</li>
		-->
		
		<ul id="navigation">
		<?php
		  session_start();
		  //$activitesList=$this->session->userdata('activitesList');
		  $activitesList=$_SESSION['activitesList'];
		  $Pre_main_activity="";
		  $sub_act_start=false;
		  foreach($activitesList as $row)
		  {
		    
		    $New_main_activity=$row["main_activity"];
		    
		    if($Pre_main_activity==$New_main_activity)
		    {
		      if(!$sub_act_start)
		       {
			echo '<ul>';
		        $sub_act_start=true;
		       }
		      echo '<li><a href="'. base_url().$row["link_page"].'">'.$row["sub_activity"].'</a></li>';
		       
		    }
		    else
		    {
		      if($sub_act_start)
		      {
			echo '</ul>';
			$sub_act_start=false;
		      }
		      echo '<li><a href="'. base_url().$row["link_page"].'"><span>'.$row["main_activity"].'</span></a>';
		    }
		    $Pre_main_activity=$New_main_activity;
		  }
		?>
	      
		</ul>
	    </div>
	  </div>
	</div>	
